package com.hoas.quickstart.threads.chapter03.chapter03_1_11_4;

public class Run2 {

    public static void main(String[] args) {
        MyStack stack = new MyStack();
        P p1 = new P( stack );
        P p2 = new P( stack );
        P p3 = new P( stack );
        P p4 = new P( stack );
        P p5 = new P( stack );

        PThread pThread1 = new PThread( p1 );
        PThread pThread2 = new PThread( p2 );
        PThread pThread3 = new PThread( p3 );
        PThread pThread4 = new PThread( p4 );
        PThread pThread5 = new PThread( p5 );


        pThread1.start();
        pThread2.start();
        pThread3.start();
        pThread4.start();
        pThread5.start();

        C c = new C( stack );
        CThread cThread1 = new CThread( c );
        cThread1.start();

    }

}
